package com.zy.design.visit.operation;

import com.zy.design.visit.file.PDFFile;
import com.zy.design.visit.file.PPTFile;
import com.zy.design.visit.file.WordFile;

/**
 * @author zhaoyi
 * @date 2021/11/9 14:46
 */
public class Compressor implements Visitor {
    @Override
    public void visit(PDFFile file) {
        System.out.println(" PDF压缩 "+file);
    }

    @Override
    public void visit(WordFile file) {
        System.out.println(" WORD压缩 "+file);
    }

    @Override
    public void visit(PPTFile file) {
        System.out.println(" PPT压缩 "+file);
    }
}
